<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QSculpt: CommandManager Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QSculpt
   &#160;<span id="projectnumber">0.0.1a</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">CommandManager Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CommandManager" -->
<p><code>#include &lt;<a class="el" href="_command_manager_8h_source.html">CommandManager.h</a>&gt;</code></p>

<p><a href="class_command_manager-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5b5ecaa73b252e0a7e29ab2626b3a6e"></a><!-- doxytag: member="CommandManager::commandExecuted" ref="ab5b5ecaa73b252e0a7e29ab2626b3a6e" args="(QString name)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>commandExecuted</b> (QString name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_manager.html#adc10dcc747e86cf925aa50c0aa6b83b8">commandActivated</a> (QString name)</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_command_manager.html#a8a13226bf933396a3f35dfb5bee3e813">CommandManager</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf06d8cb60713fc89cdd37d2af318e1a"></a><!-- doxytag: member="CommandManager::registerCommand" ref="abf06d8cb60713fc89cdd37d2af318e1a" args="(QString name, QAction *action, ICommand *cmd)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>registerCommand</b> (QString name, QAction *action, <a class="el" href="class_i_command.html">ICommand</a> *cmd)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5184b368727de3449745f4ba29a89f1"></a><!-- doxytag: member="CommandManager::unregisterCommand" ref="ab5184b368727de3449745f4ba29a89f1" args="(QString name)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>unregisterCommand</b> (QString name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a314ce6c40a5043635486db52cb7fde52"></a><!-- doxytag: member="CommandManager::setActiveCommand" ref="a314ce6c40a5043635486db52cb7fde52" args="(QString name)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>setActiveCommand</b> (QString name)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2ecd81c13deec0b5c046a2b0c80a7386"></a><!-- doxytag: member="CommandManager::getActiveCommand" ref="a2ecd81c13deec0b5c046a2b0c80a7386" args="() const " -->
<a class="el" href="class_i_command.html">ICommand</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getActiveCommand</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a69468cf907052a9936c0bbae1d6d1bd5"></a><!-- doxytag: member="CommandManager::getActiveCommandName" ref="a69468cf907052a9936c0bbae1d6d1bd5" args="()" -->
QString&#160;</td><td class="memItemRight" valign="bottom"><b>getActiveCommandName</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa3a4e8cdd327bb644c52406426130375"></a><!-- doxytag: member="CommandManager::createUndoAction" ref="aa3a4e8cdd327bb644c52406426130375" args="(QObject *parent, const QString &amp;prefix=QString()) const " -->
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>createUndoAction</b> (QObject *parent, const QString &amp;prefix=QString()) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a092e8cda760b34da9383dc88fdb524e4"></a><!-- doxytag: member="CommandManager::createRedoAction" ref="a092e8cda760b34da9383dc88fdb524e4" args="(QObject *parent, const QString &amp;prefix=QString()) const " -->
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>createRedoAction</b> (QObject *parent, const QString &amp;prefix=QString()) const </td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Manage the registration of new commands on the application. Each command is mapped to an ID (a string). </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8a13226bf933396a3f35dfb5bee3e813"></a><!-- doxytag: member="CommandManager::CommandManager" ref="a8a13226bf933396a3f35dfb5bee3e813" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CommandManager::CommandManager </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="adc10dcc747e86cf925aa50c0aa6b83b8"></a><!-- doxytag: member="CommandManager::commandActivated" ref="adc10dcc747e86cf925aa50c0aa6b83b8" args="(QString name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CommandManager::commandActivated </td>
          <td>(</td>
          <td class="paramtype">QString&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This signal is sent when a new command is activated. This signal can be used to know when a command has become active. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>qsculpt/include/command/<a class="el" href="_command_manager_8h_source.html">CommandManager.h</a></li>
<li>qsculpt/src/command/CommandManager.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sat Aug 27 2011 15:38:53 for QSculpt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
